﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace HiStore.Util.Core
{
    public static class App
    {
        /// <summary>
        /// 全局配置选项
        /// </summary>
        public static Microsoft.Extensions.Configuration.IConfiguration Configuration;
        /// <summary>
        ///  应用服务
        /// </summary>
        public static IServiceCollection Services;
        /// <summary>
        /// 全局配置构建器
        /// </summary>
        private static IConfigurationBuilder ConfigurationBuilder;

        /// <summary>
        /// 服务提供器
        /// </summary>
        public static IServiceProvider ServiceProvider => Services.BuildServiceProvider();
    }
}
